package com.xiaoning.sun.java8;

import com.xiaoning.sun.java8.interface8.Interface8Default;
import com.xiaoning.sun.java8.interface8.Interface8DefaultOverrideImpl;
import com.xiaoning.sun.java8.interface8.Interface8Factory;
import com.xiaoning.sun.java8.interface8.Interface8Impl;
import com.xiaoning.sun.java8.lambda.LambdaSample;

public class Java8Main{
	public static void main(String[] args) {
		LambdaSample lambdaSample = new LambdaSample();
//		lambdaSample.lambdaUsage1();
		
		Interface8Default interface8Default = Interface8Factory.create(Interface8Impl::new);
		interface8Default.returnString();
		interface8Default.returnStringDefault();
		
		
		interface8Default = Interface8Factory.create(Interface8DefaultOverrideImpl::new);
		interface8Default.returnString();
		interface8Default.returnStringDefault();
	}
}
